package com.sansi.pencilbook.service;

import com.sansi.pencilbook.DO.Result;
import com.sansi.pencilbook.entity.Address;

import java.util.List;

/**
 * 功能说明: 收获地址的服务接口
 *
 * @author lsy13
 */
public interface AddressServer {

    //获得所有的收货地址 ○|￣|＿ 感觉不会用上啊
    public Result getAllAddresses();

    //获得用户的收货地址
    public Result getAddressesByUser(int userId);

    // 获得某个确定的地址
    public Result getAddressByIdAndAddress(int id, String address);

    // 获取书铺的地址
    public Result getStoreAddress(int storeId);

    //添加收货地址
    public Result addAddress(Address address);

    //更改收货地址
    public Result modifyAddress(Address address);

    public Result deleteAddress(Address address);

    public Result deleteAddresses(List<Address> addresses);
}
